public class h_31 {
    public static void main(String[] args) {
        int[] a=new int[]{1,2,3,4,5,6,7};
        for(int i=0;i<a.length/2;i++){
            int temp=a[i];
            a[i]=a[a.length-1-i];
            a[a.length-1-i]=temp;
        }
        for (int i:a
             ) {
            System.out.print(i+" ");
        }
    }
}
